package com.iespring.mapper.app;

        import com.iespring.bean.app.address.bo.AddressBo;
        import com.iespring.bean.app.address.po.AddressPo;
        import com.iespring.bean.app.address.vo.AddressVo;
        import org.apache.ibatis.annotations.Param;

        import java.util.List;

/**
 * @author weigwen
 * @Description:
 * @Date 2022/12/31 18:30
 */

public interface AddressBackMapper {

    List<AddressVo> selectAddressByUserId(int i);

    AddressVo selectAddressById(@Param("id") Integer id);

    void updateAllAddressIsNotDefault(int i);

    int updateDeletedAddress(AddressBo addressBo);

    int selectAddressIsExist(AddressBo addressBo);

    int insertAddress(AddressBo addressBo);

    void updateAddressIsDefault(AddressBo addressBo);

    int updateAddress(AddressBo addressBo);

    int updateAddressDeletedStatus(int i);


}
